package com.order.service;

import com.github.pagehelper.PageInfo;
import com.order.bean.Foods;

import java.math.BigDecimal;
import java.util.List;

public interface FoodsService {

    boolean addFood(Foods food);

    boolean deleteById(Integer id);

    boolean deleteBatch(Integer[] foodIds);

    boolean updateFood(Foods food);

    Foods selectFoodById(Integer id);

    List<Foods> selcetAllFoods();

    PageInfo<Foods> selcetFoodsPage(String foodName, Integer pageNum, Integer pageSize);

    void order(Integer foodId, Integer userId);

}
